package com.qmctl.rest.bean.selldeliveryconfirm;

import java.util.List;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement(name="Package")
public class PackageClazz{

 public PackageClazz(){
 }
  private String logisticsCode;
private String logisticsName;
private String expressCode;
private String packageCode;
private double length;
private double width;
private double height;
private double theoreticalWeight;
private double weight;
private double volume;
private String invoiceNo;
@XmlElementWrapper(name="packageMaterialList")  
@XmlElement(name="packageMaterial") 
private List<PackageMaterialClazz> packageMaterials;
@XmlElementWrapper(name="items")  
@XmlElement(name="item") 
private List<ItemClazz> itemLst;
  public String getLogisticsCode(){
    return logisticsCode;
  }
  public void setLogisticsCode(String sLogisticsCode){
    logisticsCode = sLogisticsCode;
  }
  public String getLogisticsName(){
    return logisticsName;
  }
  public void setLogisticsName(String sLogisticsName){
    logisticsName = sLogisticsName;
  }
  public String getExpressCode(){
    return expressCode;
  }
  public void setExpressCode(String sExpressCode){
    expressCode = sExpressCode;
  }
  public String getPackageCode(){
    return packageCode;
  }
  public void setPackageCode(String sPackageCode){
    packageCode = sPackageCode;
  }
  public double getLength(){
    return length;
  }
  public void setLength(double dLength){
    length = dLength;
  }
  public double getWidth(){
    return width;
  }
  public void setWidth(double dWidth){
    width = dWidth;
  }
  public double getHeight(){
    return height;
  }
  public void setHeight(double dHeight){
    height = dHeight;
  }
  public double getTheoreticalWeight(){
    return theoreticalWeight;
  }
  public void setTheoreticalWeight(double dTheoreticalWeight){
    theoreticalWeight = dTheoreticalWeight;
  }
  public double getWeight(){
    return weight;
  }
  public void setWeight(double dWeight){
    weight = dWeight;
  }
  public String getInvoiceNo(){
    return invoiceNo;
  }
  public void setInvoiceNo(String sInvoiceNo){
    invoiceNo = sInvoiceNo;
  }

  public void setPackageMaterialList( List<PackageMaterialClazz> clazzPackageMaterialList){
    packageMaterials = clazzPackageMaterialList;
  }

  public void setItems(List<ItemClazz>  clazzItems){
    itemLst = clazzItems;
  }
  public PackageClazz(com.qmctl.rest.entity.PackageInfo beanClazz){
  
    logisticsCode = beanClazz.getLogisticsCode();
    logisticsName = beanClazz.getLogisticsName();
    expressCode = beanClazz.getExpressCode();
    packageCode = beanClazz.getPackageCode();
    length = beanClazz.getLength();
    width = beanClazz.getWidth();
    height = beanClazz.getHeight();
    theoreticalWeight = beanClazz.getTheoreticalWeight();
    weight = beanClazz.getWeight();
    volume = beanClazz.getVolume();
    invoiceNo = beanClazz.getInvoiceNO();
    packageMaterials = null;
    itemLst = null;
  }
  public double getVolume() {
	return volume;
}
public void setVolume(double volume) {
	this.volume = volume;
}
}
